package demo3;

/**
 * Created with IntelliJ IDEA.
 * Description:
 * User: liangyuanzhang
 * Date: 2025-2-28
 * Time: 8:13
 */

abstract class A implements USB {

}

public class Test {
    public static void main(String[] args) {
        Computer computer = new Computer();
        computer.open();

        computer.useUsbDevice(new KeyBoard());
        computer.useUsbDevice(new Mouse());

        computer.close();
    }
}
